package city.spring.modules.bed.repository;

import city.spring.modules.bed.entity.BedRoomEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 存储库：房间信息
 *
 * @author 侯坤林
 * @date 2020-04-26 12:01:45
 */
@Repository
public interface BedRoomRepository extends BaseMapper<BedRoomEntity> {

    /**
     * 获取送餐区域的房间列表
     *
     * @param areaId 排班表ID
     * @return 方案列表
     */
    List<BedRoomEntity> getBedRoom(@Param("areaId") String areaId);

}
